import logging

import yagmail


def log_set():
    logging.basicConfig(level=logging.DEBUG,format='%(levelno)s-%(funcName)s-%(message)s',filename='log.txt')
def send_wait(a):
    mail=yagmail.SMTP(user='3372266165@qq.com',password='yszczxfhrtsxdbch',host='smtp.qq.com')
    mail.send(to='3372266165@qq.com',subject='测试报告',contents='这是一个测试报告',attachments=a)